const resizeWin=()=>{
  var winW = window.innerWidth;
  document.getElementById("width").style.fontSize = winW / 10 +"px"
}

resizeWin()

window.onresize = ()=>{
  resizeWin()
 
}

var mySwiper = new Swiper ('.banner .swiper-container', {
  direction : 'horizontal',
  autoplay:{
    
    disableOnInteraction: false,

  },
  
  loop: true, // 循环模式选项
  simulateTouch : false,
  
  // 如果需要分页器
  pagination: {
    el: '.banner .swiper-pagination',
  },
  
})        